package com.my.springbootswagger;

import com.my.common.result.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: marshal
 * @date: 2021-10-20 2:44 PM
 */
@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {

    @PostMapping("/hello")
    public R<Object> hello(@RequestBody TestInVO inVO) {
        log.info(String.valueOf(inVO));
        return R.success(inVO);
    }

}
